package com.dayouzi.crawler_monitor.pojo.query;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="PersonConfigQuery", description="人员爬虫配置新增和修改字段")
public class PersonConfigQuery {

    @NotNull(message = "主键")
    @ApiModelProperty(value = "主键")
    private Integer id;

    @NotEmpty(message = "爬虫名称不能为空")
    @ApiModelProperty(value = "爬虫名称")
    private String spiderName;

    @NotEmpty(message = "负责人不能为空")
    @ApiModelProperty(value = "负责人")
    private String manager;

    @NotEmpty(message = "任务名称不能为空")
    @ApiModelProperty(value = "任务名称")
    private String taskName;

    @NotEmpty(message = "任务类名不能为空")
    @ApiModelProperty(value = "任务类名")
    private String taskClass;

    @NotEmpty(message = "队列名称不能为空")
    @ApiModelProperty(value = "队列名称")
    private String queueName;

    @ApiModelProperty(value = "定时任务id")
    private Integer scheduledId;

    @ApiModelProperty(value = "定时任务名称")
    private String scheduledName;


}
